package com.jiyun.statistical.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2025-02-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("delivery_orders")
public class DeliveryOrders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 订单号
     */
    @TableId(value = "order_number", type = IdType.AUTO)
    private String orderNumber;

    /**
     * 始发地
     */
    private String origin;

    /**
     * 目的地
     */
    private String destination;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 订单状态
     */
    private String orderStatus;

    /**
     * 货物数量
     */
    private Integer goodsQuantity;

    /**
     * 总体积
     */
    private BigDecimal totalVolume;

    /**
     * 总重量
     */
    private BigDecimal totalWeight;

    /**
     * 运费合计
     */
    private BigDecimal freightTotal;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime orderTime;


}
